﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Data.DataAccess.Database
{
    public class DbPendingChangeAccess
    {
        protected string str_connection_string;

        public DbPendingChangeAccess(string str_connection_string)
        {
            this.str_connection_string = str_connection_string;
        }

        public void AddPendingChange(PENDING_CHANGE oPendingChange)
        {
            TfsPendingCheckinDataContext oTFS = new TfsPendingCheckinDataContext(str_connection_string);

            oTFS.PENDING_CHANGEs.InsertOnSubmit(oPendingChange);

            oTFS.SubmitChanges();
        }

    }
}
